package user;

import java.util.Scanner;
import ia.*;

public class Regularuser extends User {
    public Regularuser(String name) {
        super(name);
        this.ias = new IA[]{
                null,
                new Findbook(),
                new Borrowbook(),
                new Returnbook(),
                new Exitsystem()
        };
    }


    @Override
    public int menu() {
        System.out.println("-----------普通用户菜单---------");
        System.out.println("1.查找图书");
        System.out.println("2.借阅图书");
        System.out.println("3.归还图书");
        System.out.println("4.退出系统");
        System.out.println("请选择你接下来的操作");
        Scanner sc = new Scanner(System.in);
        int choice = sc.nextInt();

        return choice;

    }
}
